import React from "react";
import {FlatList, StyleSheet} from "react-native";
import {LeftItem} from "./leftItem";

export const NewNavLeft = ({datas, navigation}) => {
    return <FlatList
        numColumns='2'
            data={datas.laiyuan}
            renderItem={({item, index}) => <LeftItem navigation={navigation} laiyuan={item} name={datas.name[index]} photo1={datas.photo1[index]}/>}
        />
}

const styles = StyleSheet.create({
    content: {
        width: '100%'
    }
})